package com.gitee.shigen.mq.consumer;

import com.gitee.shigen.base.QueueNames;
import com.gitee.shigen.vo.NotifyMsgSendVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author shigenfu
 * @date 2023/7/7 4:34 下午
 */
@Component
@Slf4j
public class NotifyMsgConsumer {

    @RabbitListener(queues = QueueNames.NOTIFY_MSG_QUEUE)
    public void msgSend(NotifyMsgSendVO vo) {
        System.out.println("消费者收到消息:" + vo);
    }

}
